Northwind Test with Yukon

Customer and Suppliers by City View

Owner

dbo

Creation Date

10-07-2003 10:31:35

Remarks


Columns

NameTypeLengthIsNullableCollation
Citynvarchar30SQL_Latin1_General_CP1_CI_AS 
Citysysname30SQL_Latin1_General_CP1_CI_AS 
CompanyNamenvarchar80SQL_Latin1_General_CP1_CI_AS 
CompanyNamesysname80SQL_Latin1_General_CP1_CI_AS 
ContactNamenvarchar60SQL_Latin1_General_CP1_CI_AS 
ContactNamesysname60SQL_Latin1_General_CP1_CI_AS 
Relationshipvarchar9SQL_Latin1_General_CP1_CI_AS 

View Definition

create view "Customer and Suppliers by City" AS
SELECT City, CompanyName, ContactName, 'Customers' AS Relationship 
FROM Customers
UNION SELECT City, CompanyName, ContactName, 'Suppliers'
FROM Suppliers
--ORDER BY City, CompanyName